#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   test.py
@Time    :   2020/09/15 21:45:34
@Author  :   Wicos 
@Version :   1.0
@Contact :   wicso@wicos.cn
@License :   (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
@Blog    :   https://www.wicos.me
'''

# here put the import lib
import requests
import json


dattta = json.dumps({
    "id": "12222333",
    "date": "shijian",
    "type": 1,
    "content": "https://imgchr.com/content/images/system/home_cover_1599498981667_fc2468.jpg"
})
#a = requests.post("http://127.0.0.1:8000/add", data=dattta)
a = requests.post("http://127.0.0.1:8000/fromtype",data=json.dumps({"type":0,"num":10,"rows":1,"offset":1}))
print(a.json())
